<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    var a=Number(prompt("请输入一个三位数"))
    var b=a%10;
    var c=parseInt(a/10%10);
    var d=parseInt(a/100);
    if(b**3+c**3+d**3==a){
        alert("是水仙花数")
    }else{
        alert("不是水仙花数")
    }
</script>